<?php //include_once 'Application/Views/view/header.php'; ?>

<form action="/app_registro_vehiculos/principal.php?controller=Vehicle&action=insert" method="post">
    <center>
        <fieldset style="width: 250px">                
            <table>
                <tr>
                    <td>PLACA</td>
                    <td><input type="text" name="placa" required placeholder="PLACA" autofocus maxlength="7"/></td>
                </tr>
                <tr>
                    <td>CATEGORIA</td>
                    <td>
                        <?php $objDb= new Class_Db();
                                  $objDb->selectManager()->connect();
                                  $query="select id_categoria,nombre from categoria";
                                  $consult=$objDb->selectManager()->select($query);
                                  //die('ddd'.count($consult));
                        ?>
                        <select  name="categoria">
                            <?php
                                  for($i=0;$i<count($consult);$i++){                                  
                            ?>
                            <option value="<?php echo $consult[$i][0] ?>"><?php echo $consult[$i][1] ?></option>
                            <?}?>
                        </select>
                    </td>
                    
                </tr>
                <tr>
                    <td>SERIE</td>
                    <td><input type="text" name="serie" required placeholder="SERIE" maxlength="17"/></td>
                </tr>
                <tr>
                    <td>MARCA</td>
                    <td><input type="text" name="marca" required placeholder="MARCA" maxlength="30"/></td>
                </tr>
                <tr>
                    <td>MODELO</td>
                    <td><input type="text" name="modelo" required placeholder="MODELO" maxlength="30" /></td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <input type="submit" value="Guardar"  />
                    </td>
                </tr>
            </table>                
        </fieldset>             
    </center>
 </form>
<center>
    <!--<div style="text-align: center">
        <?php include_once 'Application/Views/view/botonInicio.php'; ?>
    </div>-->
</center>